#include "SelfEffectFactory.h"


CSelfEffect* CSelfEffectFactor::createEffect( ESelfEffectType effectType, float fSet)
{
	CSelfEffect* pEffect = NULL;
	switch(effectType)
	{
	case EFFECT_ANGLE:
		pEffect = new CEffectAngle(fSet);
		break;
	case EFFECT_OVERTURN_X:
		pEffect = new CEffectTurnOverX();
		break;
	case EFFECT_OVERTURN_Y:
		pEffect = new CEffectTurnOverY();
		break;
	case EFFECT_ROTATE:
		pEffect = new CEffectRotate();
		break;
	case EFFECT_SCALE_X:
		pEffect = new CEffectScaleX(fSet);
		break;
	case EFFECT_SCALE_Y:
		pEffect = new CEffectScaleY(fSet);
		break;
	case EFFFECT_FlipX:
		pEffect = new CEffectFlipX();
		break;
	case EFFFECT_FlipY:
		pEffect = new CEffectFlipY();
		break;
	}
	return pEffect;
}

